<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
 var m,n,a,b,c,t;
 for(m=100;m<=999;m++) 
 { 
  a=m;
  c=0;
  for(n=1;n<=3;n++) 
  { 
   t=a%10; 
   a=Math.floor(a/10); 
   b=t*t*t;
   c=c+b;   
  } 
  if(m==c){
   alert(m); 
  }
  }
</script>
	</body>
</html>
